package ipdesk.model.common.dao;

import com.ibatis.dao.client.DaoManager;

import ecg.dao.DaoService;

public class CommonDao {
	private static CommonDao singleton;
	
	protected CommonDao(){}
	
	public static CommonDao getInstance()
	{
		if(singleton == null)
		{
			singleton = new CommonDao();
		}
		
		return singleton;
	}
	
	private DaoManager	manager	= DaoService.getInstance();
	private ICommon common 	= (ICommon)manager.getDao(ICommon.class, "ip_desk");
	
	public int companySeqCount(int companySeq) throws Exception {
		System.out.println("commonDao들어옴");
		return common.companySeqCount(companySeq);
	}
}
